package com.artislong.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.RelationshipProperties;
import org.springframework.data.neo4j.core.schema.TargetNode;

/**
 * @author 陈敏
 * @version StudentTeacherRelationShip.java, v 1.0 2025 05 11 11:19 chenmin Exp $
 * Created on 2025 05 11
 */
@RelationshipProperties
@Data
@Accessors(chain = true)
public class StudentTeacherRelationShip {
    @Id
    @GeneratedValue
    private Long id;
    private String relation;

    @TargetNode
    private Teacher teacher;
}
